import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import element-ui frame
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import './assets/icons' // icon

import './assets/styles/element-variables.scss'
// import '@/assets/styles/ruoyi.scss' // ruoyi css

import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";
import {responseInterceptor } from '@/utils/interceptor'
// 引入分页插件
import Pagination from "@/components/Pagination";
// 自定义表格工具扩展
import RightToolbar from "@/components/RightToolbar"

// 全局组件挂载
Vue.component('Pagination', Pagination)
Vue.component('RightToolbar', RightToolbar)

Vue.config.productionTip = false
Vue.use(ElementUI)

// 全局方法挂载
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree

Vue.prototype.responseInterceptor = responseInterceptor



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
